#include <unistd.h>
#include <Task/Task.h>
#include <BSP/Fan.h>
#include <BSP/Sensor.h>
#include <BSP/Time.h>


pthread_t g_task_thread = 0;

// ReSharper disable once CppParameterMayBeConstPtrOrRef
void* user_main(void* arg)
{
    (void)arg;
    /* 开始实现程序功能 */
    while (1)
    {
        // LED 任务
        link_switch_to_led(4, 0);
        link_switch_to_led(5, 1);
        // 风扇任务
        control_fan();

        int time = time_get_hour();
        Curtain_Open();
    }

    /* 程序结束 */
    return 0;
}
